package com.xuenci.gulimall.product.feign;/*
 *@author:xec
 *@date:2022/6/18  20:36
 */

import com.xuenci.common.exception.BizCodeEnume;
import com.xuenci.common.utils.R;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
@Slf4j
@Component
public class SeckillFeignServiceFallBack implements SeckillFeignService{

    @Override
    public R getSkuSeckillInfo(Long skuId) {
        log.info("熔断方法调用：getSkuSeckillInfo");
        return R.error(BizCodeEnume.TOO_MANY_REQUEST.getCode(), BizCodeEnume.TOO_MANY_REQUEST.getMsg());
    }
}
